/*
 * @Author: anonymous
 * @Date: 2022-04-18 11:25:44
 * @LastEditors: anonymous
 * @LastEditTime: 2022-04-18 12:09:38
 * @FilePath: /user_worker_client/vue.config.js
 * @Description: 
 */
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  css: {
    loaderOptions: {
      scss: {
        additionalData: `@import "@/assets/scss/variables.scss";`
      }
    }
  },
  devServer: {
    client: {
      overlay: {
        warnings: false,
        errors: false,
        // 只显示编译错误，忽略运行时警告
      }
    },
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        changeOrigin: true,
        pathRewrite: { '^/api': '' }
      }
    }
  }
})

